﻿@model VehicleManagement.Models.DriverManager

@{
    ViewBag.Title = "MyInformation";
}
<link href="../../Content/css/page_yk_index.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="@Url.Content("~/Content/css/page_zlb_c_e_d.css")" type="text/css"/>
@Html.Partial("_PartviewDrivermanageNav")
<div class="content bc">
    <div class="content_link_warn f12">
        你当前的位置：&gt&gt &nbsp;&nbsp;个人中心
    </div>
    <div class="content_right fr" id="rightcontent">
    
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

 <fieldset>
                @*<legend></legend>*@
                <div class="OutTitle">
                    <span>个人中心</span></div>
                <div class="Box">
                    <div class="SubBox3 mt5 ml15 mr15">
                        
                        <div class="SubBox-container">
                        <div class="pt10"></div>
                            <div class="pic-wrap">
                                @if (string.IsNullOrWhiteSpace(Model.Image))
                                {
                                    <img src="../../Content/themes/picture/defaultHeadImage.png" />
                                }
                                else
                                {
                                    <img src="/Photos/DriverManager/@Model.Image" />
                                }
                            </div>
                            <div class="text-wrap ml15 mb5 mr5">
                                <div class="SubTitle-style2">
                                    个人基本信息<span><a class="a-extent1" href="#">点击修改</a></span></div>
                                <div class="SubBox4-container">
                                <div class="text-line-style2">
                                @Html.HiddenFor(model => model.DriverManagerID)
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Name):</span>
                                        @Html.DisplayFor(model => model.Name)
                                        @Html.HiddenFor(model => model.Name)

                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Sex):</span>
                                        @Html.DisplayFor(model => model.Sex)
                                        @Html.HiddenFor(model => model.Sex)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LoginName):</span>
                                        @Html.DisplayFor(model => model.LoginName)
                                        @Html.HiddenFor(model => model.LoginName)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Email):</span>
                                        @Html.DisplayFor(model => model.Email)
                                        @Html.HiddenFor(model => model.Email)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Telephone):</span>
                                        @Html.DisplayFor(model => model.Telephone)
                                        @Html.HiddenFor(model => model.Telephone)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CompanyName):</span>
                                        @Html.DisplayFor(model => model.CompanyName)
                                        @Html.HiddenFor(model => model.CompanyName)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                               
                                </div>
                                <div class="SubBox5-container">
                                <div class="text-line-style2">
                                @Html.HiddenFor(model => model.DriverManagerID)
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Name):</span>
                                        @Html.EditorFor(model => model.Name)
                                        @Html.HiddenFor(model => model.Name)

                                    </div>
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Sex):</span>
                                        @Html.DropDownListFor(model => model.Sex, new SelectList(new[] { "男", "女" }, "男"))
                                        @Html.HiddenFor(model => model.Sex)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.LoginName):</span>
                                        @Html.DisplayFor(model => model.LoginName)
                                        @Html.HiddenFor(model => model.LoginName)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Email):</span>
                                        @Html.EditorFor(model => model.Email)
                                        @Html.HiddenFor(model => model.Email)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Telephone):</span>
                                        @Html.EditorFor(model => model.Telephone)
                                        @Html.HiddenFor(model => model.Telephone)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.CompanyName):</span>
                                        @Html.DisplayFor(model => model.CompanyName)
                                        @Html.HiddenFor(model => model.CompanyName)
                                    </div>
                                    <div class="clear"></div>
                                </div>
                               
                                <input id="personinfo_submit" type="submit" value="确认修改" />
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="SubBox3 m15 mt30 mb5 ml125">
                        <div class="SubTitle-style2">
                            密码管理<span><a class="a-extent" href="#">点击收放</a></span></div>
                        <div class="SubBox3-container">
                            <div class="text-wrap ml5 mb5 mr5">
                                <div class="text-line-style2">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Question):</span>
                                        @Html.DropDownListFor(model => model.Question,
                                         new SelectList(new[] { "我的生日", "我的职业", "我的配偶的名字", "我的配偶的职业", "父亲的名字", "父亲的生日", "母亲的名字", "母亲的生日", "我读过的小学", "我读过的初中", "我读过的高中", "我读过的大学" }, "我的生日"))

                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span>@Html.LabelFor(model => model.Answer):</span>
                                        @Html.EditorFor(model => model.Answer)

                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span class="spanType1"><label>修改密码:</label></span>
                                        @Html.EditorFor(model => model.Password)

                                    </div>
                                    <div class="clear"></div>
                                </div>
                                 <div class="text-line-style3">
                                    <div class="withValidate">
                                        <span class="spanType1"><label>确定密码</label>:</span>
                                        <input id="queryPassword1" class="text-box single-line password" type="password"/>
                                        <input id="queryPassword3_but" type="submit" value="确认修改" />
                                        <label id="queryPassword2" >两次输入的密码不一致</label>

                                    </div>
                                    <div class="clear"></div>
                                </div>
                                
                            </div>
                        </div>
                    </div>

                </div>
                 
            
            <div class="button-wrap ml630">
                <div class="a-back mr15">
                    <div class="padding2"></div>
                    <div class="divINa-back"><a href="../../Driver/Index">返回</a></div>
                </div>
            </div>
        </fieldset>

}
    </div>
    @Html.Partial("_PartviewMyInformationLeftbar")
    <div class="content_contract fl">
        <a href="javascript:void(0)" class="btn_contract w8h32" id="contract" title="收缩">
        </a><a href="javascript:void(0)" class="btn_expand w8h32" id="expand" title="展开">
        </a>
    </div>
    <div class="cb">
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {

        $(".a-extent1").toggle(function () {
            $(".SubBox4-container").hide();
            $(".SubBox5-container").show();
        }, function () {
            $(".SubBox4-container").show();
            $(".SubBox5-container").hide();
        });
        $("#Remark").css("width", "200px");
        $(".a-extent").toggle(function () {
            $(".SubBox3-container").show();
        }, function () {
            $(".SubBox3-container").hide();
        });

        var $queryPassword2 = $("#queryPassword2");
        var $queryPassword1 = $("#queryPassword1");
        var $AdminPassword = $("#AdminPassword");
        var $queryPassword3_but = $("#queryPassword3_but");

        $queryPassword1.val($AdminPassword.val());
        $queryPassword3_but.attr("disabled", false);

        $queryPassword1.keyup(function () {
            if ($queryPassword1.val() != $AdminPassword.val()) {
                $queryPassword2.show();
                $queryPassword3_but.attr("disabled", true);
            }
            else {
                $queryPassword2.hide();
                $queryPassword3_but.attr("disabled", false);
            }
        })


    })
</script>